﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace NewRen.Models
{
    public class Business
    {
        /// <summary>
        /// 逻辑ID
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 商家名称
        /// </summary>
        [Index]
        [StringLength(100)]
        public string BusinessName { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [Index]
        [StringLength(15)]
        public string Phone { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 微信
        /// </summary>
        public string WhatApp { get; set; }

        /// <summary>
        /// 邮件
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 登陆名字
        /// </summary>
        [Index]
        [StringLength(50)]
        public string LoginName { get; set; }

        /// <summary>
        /// 城市
        /// </summary>
        public string City { set; get; }

        /// <summary>
        /// 图标
        /// </summary>
        public byte[] Picture { set; get; }


        /// <summary>
        /// 微博
        /// </summary>
        public string Weibo { set; get; }

        /// <summary>
        /// 登陆密码
        /// </summary>
        public string LoginPassword { get; set; }

        /// <summary>
        /// 增加时间
        /// </summary>
        [Index]
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 上次登录时间
        /// </summary>
        [Index]
        public DateTime? LastLoginTime { get; set; }

        /// <summary>
        /// 优先级 用于排名
        /// </summary>
        public int Priority { get; set; }

        /// <summary>
        /// 访问量
        /// </summary>
        public int PV { get; set; }

        /// <summary>
        /// 今日访问量
        /// </summary>
        public int TodayPV { get; set; }

        /// <summary>
        ///赞
        /// </summary>
        public int Ups { get; set; }

        /// <summary>
        /// 踩
        /// </summary>
        public int Downs { get; set; }

        /// <summary>
        /// 行业
        /// </summary>
        [StringLength(50)]
        public string Industry { get; set; }

        /// <summary>
        /// 是否认证
        /// </summary>
        public bool IsVerified { set; get; }


        public bool IsShow { set; get; }
    }
}
